<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta name="GENERATOR" content="PasDoc 0.12.1">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Emuteca: uEmutecaStats: Class cGameStats</title>
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
<a name="cGameStats"></a><h1 class="cio">Class cGameStats</h1>
<table class="sections wide_list">
<tr>
<td><a class="section"  href="#%40Description">Description</a></td><td><a class="section"  href="#%40Hierarchy">Hierarchy</a></td><td>Fields</td><td><a class="section"  href="#%40Methods">Methods</a></td><td><a class="section"  href="#%40Properties">Properties</a></td></tr></table>
<a name="%40Description"></a><h2 class="unit">Unit</h2>
<p class="unitlink">
<a   href="uEmutecaStats.html">uEmutecaStats</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type cGameStats = class(TObject)</code></p>
<h2 class="description">Description</h2>
<p>
<code>cGameStats</code> class.

<p>This class is the ancestor of <a class="normal"  href="uEmutecaGame.cGame.html">cGame</a> and cGroup, giving them some properties used for storing stats by <a class="normal"  href="uEmutecaGameManager.cGameManager.html">cGameManager</a> or other information that can be used by GUI as cache.

<p></p>

<dl class="paragraph_spacing">
  <dt>NOTE:</dt>
  <dd><p>Because PascalScript don't suport overloaded methods, we don't use them right here.</p></dd>
</dl>

<p></p>
<a name="%40Hierarchy"></a><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TObject</li>
<li class="thisitem">cGameStats</li></ul><h2 class="overview">Overview</h2>
<a name="%40Methods"></a><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>constructor <b><a   href="uEmutecaStats.cGameStats.html#Create">Create</a></b>;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>destructor <b><a   href="uEmutecaStats.cGameStats.html#Destroy">Destroy</a></b>; override;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="uEmutecaStats.cGameStats.html#AddPlayingTime">AddPlayingTime</a></b>(const Stop: TDateTime; Start: TDateTime = 0);</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>procedure <b><a   href="uEmutecaStats.cGameStats.html#IncTimesPlayed">IncTimesPlayed</a></b>;</code></td>
</tr>
</table>
<a name="%40Properties"></a><h3 class="summary">Properties</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="uEmutecaStats.cGameStats.html#PlayingTime">PlayingTime</a></b>: LongWord read FPlayingTime write SetPlayingTime;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="uEmutecaStats.cGameStats.html#TimesPlayed">TimesPlayed</a></b>: LongWord read FTimesPlayed write SetTimesPlayed;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="uEmutecaStats.cGameStats.html#IconIndex">IconIndex</a></b>: Integer read FIconIndex write SetIconIndex;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>property <b><a   href="uEmutecaStats.cGameStats.html#LastTime">LastTime</a></b>: TDateTime read FLastTime write SetLastTime;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Methods</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Create"></a><code>constructor <b>Create</b>;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="Destroy"></a><code>destructor <b>Destroy</b>; override;</code></td>
</tr>
<tr><td colspan="2">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="AddPlayingTime"></a><code>procedure <b>AddPlayingTime</b>(const Stop: TDateTime; Start: TDateTime = 0);</code></td>
</tr>
<tr><td colspan="2">
<p>
Add the seconds between two TDateTime to <a class="normal"  href="uEmutecaStats.cGameStats.html#PlayingTime">PlayingTime</a>.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="IncTimesPlayed"></a><code>procedure <b>IncTimesPlayed</b>;</code></td>
</tr>
<tr><td colspan="2">
<p>
Increment the times played by 1.

<p>Yes, it's a silly method.</p>
</td></tr>
</table>
<h3 class="detail">Properties</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="PlayingTime"></a><code>property <b>PlayingTime</b>: LongWord read FPlayingTime write SetPlayingTime;</code></td>
</tr>
<tr><td colspan="2">
<p>
Total seconds played.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="TimesPlayed"></a><code>property <b>TimesPlayed</b>: LongWord read FTimesPlayed write SetTimesPlayed;</code></td>
</tr>
<tr><td colspan="2">
<p>
Total times played the game.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="IconIndex"></a><code>property <b>IconIndex</b>: Integer read FIconIndex write SetIconIndex;</code></td>
</tr>
<tr><td colspan="2">
<p>
Index of the icon in a image list.</p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a   href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><a name="LastTime"></a><code>property <b>LastTime</b>: TDateTime read FLastTime write SetLastTime;</code></td>
</tr>
<tr><td colspan="2">
<p>
Last time played the game.

<p>In cGroup maybe used to store the last time that a game has played from the group.</p>
</td></tr>
</table>
<hr noshade size="1"><span class="appinfo"><em>Generated by <a  target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.12.1</a> on 2012-10-14 16:56:28</em>
</span>
</body></html>
